home *** CD-ROM | disk | FTP | other *** search
- Path: news2.ios.com!usenet
- From: Keith Boruff <kboruff@village.ios.com>
- Newsgroups: comp.lang.c++
- Subject: interface and implementation question for a class
- Date: Fri, 08 Mar 1996 06:38:02 -0800
- Organization: Internet Online Services
- Message-ID: <3140464A.5B9B@village.ios.com>
- NNTP-Posting-Host: ppp-15.ts-3.nyc.idt.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- I am sorry if this is more of a compiler question than a specific C++ question, but since it
- involves a class that I have constructed, I thought that maybe someone could help me out on this
- newsgroup.
-
- I have constructed 3 files
- time.h -> Includes the declaration of my class
- time.cpp-> Includes member function definitions of my class
- timedriv.cpp-> driver program for my class
-
- I have compiled the time.cpp into time.lib (static) and then tried to compile and link my
- timedriv.cpp program. Linking the latter code is where I am running into an error. It seems that
- during the linking process, time.lib is not being seen. I have tried everything that I could
- think of (moving time.lib to my /lib subdirectory) but to no avail.
-
- I know that I could get this program to work if I insert all three files into a project but that
- is not what I am trying to do. I am trying to successfully construct implementation files which
- include function and member function definitions so that I can use these things over and over
- (much like our standard library files -> iostream.h, stdlib.h, etc.)
-
- If someone out there could give me some advice on how to achieve these things, I would greatly
- appreciate it. I assumed that for this problem, the contents of the above files are irrelevant
- and are not needed in conveying my message.
-
- If it matters, my compiler is Borland Turbo C++ 4.5 for Windows, But I am compiling these
- programs as easy Win applications (pseudo DOS)
-
- Keith Boruff
-